//
//  FSTableViewRowItem.m
//  fanshu
//
//  Created by jklin on 16/3/27.
//  Copyright © 2016年 FS. All rights reserved.
//

#import "FSBasicRowItem.h"

@implementation FSBasicRowItem
+(instancetype)tableViewRowItemWithImage:(UIImage *)image title:(NSString *)title detailtitle:(NSString *)detailtitle{
    FSBasicRowItem *rowItem = [[self alloc]init];
    rowItem.image = image;
    rowItem.title = title;
    rowItem.detailTitle = detailtitle;
    return rowItem;
}
+(instancetype)tableViewRowItemWithImageName:(NSString *)imageName title:(NSString *)title detailtitle:(NSString *)detailtitle{
    FSBasicRowItem *rowItem = [[self alloc]init];
    UIImage *image = [UIImage imageNamed:imageName];
    rowItem.image = image;
    rowItem.title = title;
    rowItem.detailTitle = detailtitle;
    return rowItem;
}
-(instancetype)initWithImage:(UIImage *)image title:(NSString *)title detailtitle:(NSString *)detailtitle{
    self = [super init];
    self.image = image;
    self.title = title;
    self.detailTitle = detailtitle;
    return self;

}
@end
